package com.zcc.blog.mapper;

import com.zcc.blog.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zcc
 * @since 2022-09-05
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    boolean updateAvatar(String avatar, Long id);

    boolean updateLastLogin(LocalDateTime lastLogin, Long id);

    boolean updatePasswordBoolean(String password, Long id);
}
